<head>
<link type="text/css" rel="stylesheet" href="../bovenschrift.css" />
<script src="../bovenschrift.js"></script>
<script>
<?php
   require_once "../../../_PHPscripts/basisfuncties.php";
   $iNr = $_GET["iNr"];
   $sqlZin =<<<SQL
     select distinct jaar from fr_XML 
        where periode like 'm%' 
          and inschrijvingsNr = '$iNr' 
            order by jaar
SQL;
	$conn = odbc_connect($rapportDB, '', '');
	$rs = odbc_exec($conn, $sqlStr);
	$i = 0;
	while (odbc_fetch_row($rs)){
    echo " jaren[".$i."] = '".odbc_result($rs,'jaar')."';";
	  $i++;
  }
	odbc_close($conn);
	echo "aantalTitels = ".$i.";";
?>

function roep(){ 
  if (aantalTitels < 1)&&(jaren[nrTitel] == ''){return};
  parent.rapport.location = "geefRapport.php?iNr=<?php $_GET['iNr'] ?>" +
	"&jaar=" + jaren[nrTitel];
}

</script>
</head>
<body onLoad="toonEerst();" bgcolor="#DDDDDD">

<table border=0 cellspacing=0 cellpadding=0>
<tr width="100%">
<td align="left"> &nbsp; &nbsp; &nbsp; </td>
<td align="right"><button onClick="vorig()"> << </button></td>
<th>&nbsp;&nbsp; <b>Maandrapport <span id="hetJaar"></span></b></th>
<td align="left"><button onClick="volgend()"> >> </button> &nbsp;</td>
<td><input type=hidden name="iNr"></td>
<td><input type=hidden name="jaar"></td>
</tr>
</table>
</body>